﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DataInfo;
using KenLib.BusinessObject;
using KenLib.BusinessManager;
using System.Collections.Generic;
using System.Text.RegularExpressions;


public partial class Org_frmO_EmpAcademicInput : System.Web.UI.Page
{
    protected void Page_PreRender(object sender, EventArgs e)
    {
        ViewState["CountingSubmitOrg52"] = Session["CountingSubmitOrg52"];
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Org_MasterPage)this.Master).changeTitle("学歴情報登録");
        ((Org_MasterPage)this.Master).HideLiArea("frmO_EmpAcademicInput");
        
        
        Session["社員ID"] = "200";
        if (Session["社員ID"]==null || Session["社員ID"]=="" || Session["社員ID"].ToString() == "")
            Response.Redirect("frmO_EmpPhysicalExamInput.aspx");


        if (!Page.IsPostBack)
        {
            ViewState["IdCurrent_Org_52"] = "";
            ViewState["indexPage_Org_52"] = "0";
            ViewState["TempTableLoadOrg52"] = null;
            Session["CountingSubmitOrg52"] = Server.UrlEncode(System.DateTime.Now.ToString());

            try
            {
                ClearTextPage();
                LoadDataGridview();

                LoadMessageError();
                ddl_区分.Focus();

                string ngaysinh = new 基本情報Manager().getNgaySinh(Int32.Parse(Session["社員ID"].ToString()));
                if (ngaysinh.Length >= 10)
                    hfNgaySinh.Value = ngaysinh.Substring(0, 10);
                else
                    hfNgaySinh.Value = "";

            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
    }

    /// <summary>
    /// Load message error
    /// </summary>
    private void LoadMessageError()
    {
        RequiredFieldValidator1.ErrorMessage = GetError("ER00001");
        RequiredFieldValidator2.ErrorMessage = GetError("ER00001");
        RequiredFieldValidator4.ErrorMessage = GetError("ER00001");
        RequiredFieldValidator5.ErrorMessage = GetError("ER00001");
        RequiredFieldValidator6.ErrorMessage = GetError("ER00001");
        RequiredFieldValidator7.ErrorMessage = GetError("ER00007");
        RequiredFieldValidator8.ErrorMessage = GetError("ER00007");
        RegularExpressionValidator1.ErrorMessage = GetError("ER00002");
        RegularExpressionValidator2.ErrorMessage = GetError("ER00002");
        CustomValidator2.ErrorMessage = GetError("ER00001");
        CustomValidator1.ErrorMessage = GetError("ER00005");
        CustomValidator4.ErrorMessage = GetError("ER00005");
    }

    protected void btn_戻る_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmO_EmpPhysicalExamInput.aspx");
    }
   
    protected void btn_次_Click(object sender, EventArgs e)
    {
        Response.Redirect("frmO_EmpWorkedCompInput.aspx");
    }

    private void ClearTextPage()
    {
        ddl_学歴区分.SelectedIndex = 0;
        ddl_区分.SelectedIndex = 0;
        txt_開始時期.Text = "";
        txt_学校住所.Text = "";
        txt_学校名.Text = "";
        txt_終了時期.Text = "";
        txt_専攻学科.Text = "";
        txt_専攻学部.Text = "";
        txt_専攻系列コード.Text = "";
        txt_専攻内容.Text = "";
        txt_専門技術.Text = "";
        txt_担当教授名.Text = "";

        rad_理系.Checked = true;
        rad_文系.Checked = false;


    }

    protected void btn登録_Click(object sender, EventArgs e)
    {
        try
        {
            if (Session["CountingSubmitOrg52"].ToString() == ViewState["CountingSubmitOrg52"].ToString())
            {
                学歴情報Manager _mana = new 学歴情報Manager();
                学歴情報 obj = new 学歴情報();

                obj.廃止区分 = 0;
                obj.区分 = Int32.Parse(ddl_区分.SelectedValue.ToString());
                obj.学歴区分 = Int32.Parse(ddl_学歴区分.SelectedValue.ToString());
                obj.学校名 = ConvertHTMLtoText(txt_学校名.Text.Trim().ToString());
                obj.学校住所 = ConvertHTMLtoText(txt_学校住所.Text.Trim().ToString());
                if (rad_文系.Checked == true)
                    obj.専攻区分 = 1;
                else
                    obj.専攻区分 = 0;
                obj.専攻系列コード_1 = ConvertHTMLtoText(txt_専攻系列コード.Text.Trim().ToString());
                obj.専攻学部 = ConvertHTMLtoText(txt_専攻学部.Text.Trim().ToString());
                obj.専攻学科 = ConvertHTMLtoText(txt_専攻学科.Text.Trim().ToString());
                obj.専攻内容 = ConvertHTMLtoText(txt_専攻内容.Text.Trim().ToString());
                obj.専門技術 = ConvertHTMLtoText(txt_専門技術.Text.Trim().ToString());
                obj.担当教授名 = ConvertHTMLtoText(txt_担当教授名.Text.Trim().ToString());
                if (txt_開始時期.Text != "")
                {
                    DateTime d1 = DateTime.Parse(txt_開始時期.Text);
                    obj.開始時期 = d1;
                }
                if (txt_終了時期.Text != "")
                {
                    DateTime d1 = DateTime.Parse(txt_終了時期.Text);
                    obj.終了時期 = d1;
                }
                obj.社員ID = Int32.Parse(Session["社員ID"].ToString());

                string strIdCurrent_Org_52 = ViewState["IdCurrent_Org_52"] != null ? ViewState["IdCurrent_Org_52"].ToString() : "";
                if (strIdCurrent_Org_52 == "")
                {
                    
                    
                    /*---------------This is Insert mode: Insert state------------*/
                    // Check duplicate 
                    // before inserting into DB
                    int check_exists = 0;
                    check_exists = _mana.checkExists学歴情報_InsertMode_JS55(obj);

                    if (check_exists == 1)// exists a duplicate
                    {
                        string MessageCode = GetError("ER00009");
                        Page.ClientScript.RegisterStartupScript(typeof(Page), "Same 01", "alert('" + MessageCode + "');", true);
                    }
                    else
                    {
                        int IdOutput;
                        int kq = new 学歴情報Manager().InsertPartialTable(obj, out IdOutput);//Save data to database
                        if (kq != 0 && IdOutput != 0)
                        {
                            ViewState["IdCurrentOutput_Org_52"] = IdOutput.ToString();
                            Session["CountingSubmitOrg52"] = Server.UrlEncode(System.DateTime.Now.ToString());
                            ClearTextPage();
                            this.LoadDataGridview();
                        }
                    }
                }
                else
                {
                    //Mode update of insert state
                    //学歴情報 obj = new 学歴情報();
                    //obj.廃止区分 = 0;
                    //obj.区分 = Int32.Parse(ddl_区分.SelectedValue.ToString());
                    //obj.学歴区分 = Int32.Parse(ddl_学歴区分.SelectedValue.ToString());
                    //obj.学校名 = ConvertHTMLtoText(txt_学校名.Text.Trim().ToString());
                    //obj.学校住所 = ConvertHTMLtoText(txt_学校住所.Text.Trim().ToString());
                    //if (rad_文系.Checked == true)
                    //    obj.専攻区分 = 1;
                    //else
                    //    obj.専攻区分 = 0;
                    //obj.専攻系列コード_1 = ConvertHTMLtoText(txt_専攻系列コード.Text.Trim().ToString());
                    //obj.専攻学部 = ConvertHTMLtoText(txt_専攻学部.Text.Trim().ToString());
                    //obj.専攻学科 = ConvertHTMLtoText(txt_専攻学科.Text.Trim().ToString());
                    //obj.専攻内容 = ConvertHTMLtoText(txt_専攻内容.Text.Trim().ToString());
                    //obj.専門技術 = ConvertHTMLtoText(txt_専門技術.Text.Trim().ToString());
                    //obj.担当教授名 = ConvertHTMLtoText(txt_担当教授名.Text.Trim().ToString());

                    //if (txt_開始時期.Text != "")
                    //{
                    //    DateTime d1 = DateTime.Parse(txt_開始時期.Text);
                    //    obj.開始時期 = d1;
                    //}

                    //if (txt_終了時期.Text != "")
                    //{
                    //    DateTime d1 = DateTime.Parse(txt_終了時期.Text);
                    //    obj.終了時期 = d1;
                    //}
                    int intIdOutput = Int32.Parse(strIdCurrent_Org_52);
                    obj.ID = intIdOutput;
                    
                    bool checkStateChanged = false;
                    checkStateChanged = _mana.checkHasChangedData(obj);

                    if (checkStateChanged == false)
                    {
                        // Not still change data
                        int kq = new 学歴情報Manager().UpdatePartialTable(obj, intIdOutput);//Save data to database
                        if (kq != 0 && kq != -1)
                        {
                            ClearTextPage();
                            LoadDataGridview();
                            btn登録.Text = "登録";
                            ViewState["IdCurrent_Org_52"] = "";
                            ViewState["IdCurrent_Org_52_After"] = strIdCurrent_Org_52;
                            Session["CountingSubmitOrg52"] = Server.UrlEncode(System.DateTime.Now.ToString());
                        }
                    }
                    else
                    {
                        // Has changed data
                        // Check exists a duplicate
                        int check_exists = 0;
                        check_exists = _mana.checkExists学歴情報_InsertMode_JS55(obj);

                        if (check_exists == 1)// exists a duplicate
                        {
                            string MessageCode = GetError("ER00009");
                            Page.ClientScript.RegisterStartupScript(typeof(Page), "Same 01", "alert('" + MessageCode + "');", true);
                        }
                        else
                        {
                            int kq = new 学歴情報Manager().UpdatePartialTable(obj, intIdOutput);//Save data to database
                            if (kq != 0 && kq != -1)
                            {
                                ClearTextPage();
                                LoadDataGridview();
                                btn登録.Text = "登録";
                                ViewState["IdCurrent_Org_52"] = "";
                                ViewState["IdCurrent_Org_52_After"] = strIdCurrent_Org_52;
                                Session["CountingSubmitOrg52"] = Server.UrlEncode(System.DateTime.Now.ToString());
                            }
                        }
                    }
                }
            }
            else
            {
                ClearTextPage();
                this.LoadDataGridview();
            }
        }
        catch (Exception ex)
        {
            throw new Exception(ex.Message);
        }
    }

    /// <summary>
    /// Chuyen ki tu text thanh ma HTML
    /// </summary>
    /// <param name="temp"></param>
    /// <returns></returns>
    public string ConvertTexttoHTML(string temp)
    {
        temp = temp.Replace("<", "&lt;");
        temp = temp.Replace(">", "&gt;");
        return temp;
    }

    /// <summary>
    /// Chuyen ma HTML nguoc lai thanh text
    /// </summary>
    /// <param name="temp"></param>
    /// <returns></returns>
    public string ConvertHTMLtoText(string temp)
    {
        temp = temp.Replace("&lt;", "<");
        temp = temp.Replace("&gt;", ">");
        temp = temp.Replace(Convert.ToString((char)13), "<br/>");
        return temp;
    }

    /// <summary>
    /// Xuat alert() ra man hinh
    /// </summary>
    private void ErrorInput()
    {
        String strScr;
        strScr = "<script type='text/javascript'>";
        strScr += "alert('" + GetError("ER00001") + "')";
        strScr += "</script>";
        ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "alert", strScr, false);
        this.LoadDataGridview();
    }

    /// <summary>
    /// Xuat thong diep loi ra man hinh
    /// </summary>
    /// <param name="str"></param>
    private void ErrorValid(String str)
    {
        String strScr;
        strScr = "<script type='text/javascript'>";
        strScr += "alert('" + GetError(str) + "')";
        strScr += "</script>";
        ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "alert", strScr, false);
        this.LoadDataGridview();
    }

    private void LoadDataGridview()
    {

        //List<学歴情報> lst = new 学歴情報Manager().SelectPartial(Session["社員ID"].ToString());
        //if (lst.Count > 0)
        //{
        //    grv_human.DataSource = lst;
        //    grv_human.DataBind();
        //}
        //else
        //    AppCode_Common.ShowEmtyGrid<学歴情報>(grv_human, 4, "データーがありません。", "");

        DataTable dt = new 学歴情報Manager().SelectPartialTable(Session["社員ID"].ToString());
        if (dt.Rows.Count > 0)
        {
            grv_human.DataSource = dt;
            ViewState["TempTableLoadOrg52"] = dt;
            grv_human.DataBind();
        }
        else
        {
            string header =  "ID,学歴区分,学校名,開始時期,終了時期";
            ShowGridViewNotClassEmpty(grv_human, header, "データーがありません。");

        }


    }

    protected void grv_human_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        grv_human.PageIndex = e.NewPageIndex;
        ViewState["indexPage_Org_52"] = e.NewPageIndex.ToString();
        LoadDataGridview();
    }

    /// <summary>
    /// Lay ma loi tu Database
    /// </summary>
    /// <param name="errorid"></param>
    /// <returns></returns>
    public String GetError(string errorid)
    {
        Error er = new Error();
        er.ErrorID = errorid;
        ErrorManager frm_error = new ErrorManager();
        DataTable dt = frm_error.getError(er);
        return dt.Rows[0][2].ToString();
    }

    /// <summary>
    /// Kiem tra ngay thang hop le
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    protected Boolean checkDateValid(String input)
    {
        String pattern = @"^(?ni:(?=\d)((?'year'((1[6-9])|([2-9]\d))\d\d)(?'sep'[/.-])(?'month'0?[1-9]|1[012])\2(?'day'((?<!(\2((0?[2469])|11)\2))31)|(?<!\2(0?2)\2)(29|30)|((?<=((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(16|[2468][048]|[3579][26])00)\2\3\2)29)|((0?[1-9])|(1\d)|(2[0-8])))(?:(?=\x20\d)\x20|$))?((?<time>((0?[1-9]|1[012])(:[0-5]\d){0,2}(\x20[AP]M))|([01]\d|2[0-3])(:[0-5]\d){1,2}))?)$";
        return Regex.IsMatch(input, pattern);
    }

    protected void btnリセット_Click1(object sender, EventArgs e)
    {
        
        string strIdCurrent = ViewState["IdCurrent_Org_52"] != null ? ViewState["IdCurrent_Org_52"].ToString() : "";
        if (strIdCurrent != "")
        {
            DataTable dt = (DataTable)ViewState["Table_Org_52"];
            int index = Int32.Parse(ViewState["Index_Org_52"].ToString());

            string temp1 = dt.Rows[index]["区分"].ToString();
            string temp2 = dt.Rows[index]["学歴区分"].ToString();
            string temp3 = dt.Rows[index]["学校名"].ToString();
            string temp4 = dt.Rows[index]["学校住所"].ToString();
            string temp5 = dt.Rows[index]["専攻区分"].ToString();
            string temp6 = dt.Rows[index]["専攻系列コード"].ToString();
            string temp7 = dt.Rows[index]["専攻学部"].ToString();
            string temp8 = dt.Rows[index]["専攻学科"].ToString();
            string temp9 = dt.Rows[index]["専攻内容"].ToString();
            string temp10 = dt.Rows[index]["専門技術"].ToString();
            string temp11 = dt.Rows[index]["担当教授名"].ToString();
            string temp12 = dt.Rows[index]["開始時期"].ToString();
            string temp13 = dt.Rows[index]["終了時期"].ToString();

            if (temp1 != "")
            {
                ListItem lst = ddl_区分.Items.FindByValue(temp1);
                ddl_区分.SelectedIndex = ddl_区分.Items.IndexOf(lst);
            }

            if (temp2 != "")
            {
                ListItem lst = ddl_学歴区分.Items.FindByValue(temp1);
                ddl_学歴区分.SelectedIndex = ddl_学歴区分.Items.IndexOf(lst);
            }

            txt_学校名.Text = ConvertTexttoHTML(temp3);
            txt_学校住所.Text = ConvertTexttoHTML(temp4);

            if (temp5 != "")
            {
                if (temp5 == "1")
                    rad_文系.Checked = true;
                else
                    rad_理系.Checked = true;
            }
            txt_専攻系列コード.Text = ConvertTexttoHTML(temp6);
            txt_専攻学部.Text = ConvertTexttoHTML(temp7);
            txt_専攻学科.Text = ConvertTexttoHTML(temp8);
            txt_専攻内容.Text = ConvertTexttoHTML(temp9);
            txt_専門技術.Text = ConvertTexttoHTML(temp10);
            txt_担当教授名.Text = ConvertTexttoHTML(temp11);
            txt_開始時期.Text = temp12 != "" ? temp12.Substring(0, 10) : "";
            txt_終了時期.Text = temp13 != "" ? temp13.Substring(0, 10) : "";

            //LoadDataGridview();
            ddl_区分.Focus();
        }
        else
        {
            ClearTextPage();
            ddl_区分.Focus();
        }
    }

    /// <summary>
    /// Hien thi du lieu rong cho Gridview
    /// </summary>
    /// <param name="grv"></param>
    /// <param name="strTableHeader"></param>
    /// <param name="strEmpty"></param>
    public void ShowGridViewNotClassEmpty(GridView grv, string strTableHeader, string strEmpty)
    {
        DataTable dt = new DataTable();
        string[] arrColumnNames = strTableHeader.Split(',');
        foreach (string str in arrColumnNames)
        {
            dt.Columns.Add(str);
        }
        grv.ShowFooter = false;
        DataRow r = dt.NewRow();
        dt.Rows.InsertAt(r, 0);
        grv.DataSource = dt;
        grv.DataBind();
        grv.Rows[0].Cells.Clear();
        TableCell cell = new TableCell();
        cell.ColumnSpan = grv.Columns.Count + 1;
        cell.Text = strEmpty;
        grv.Rows[0].Cells.Add(cell);

    }

    protected void grv_human_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            //e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.textDecoration='none';";
            e.Row.Attributes.Add("onclick", "javascript:__doPostBack('ctl00$ContentPlaceHolder1$grv_human','Load$" + e.Row.RowIndex + "')");
        }
    }
    
    protected void grv_human_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName.Equals("Load"))
        {
            int pagecurrent = Int32.Parse(ViewState["indexPage_Org_52"].ToString());
            int index;
            if (pagecurrent == 0)
                index = Int32.Parse(e.CommandArgument.ToString());
            else
                index = Convert.ToInt32(e.CommandArgument) + pagecurrent * 10;
            if (index == -1) return;

            DataTable dt = null;

            //dt = new 学歴情報Manager().SelectPartialTable(Session["社員ID"].ToString());
            dt = (DataTable)ViewState["TempTableLoadOrg52"];
            if (dt!=null && dt.Rows.Count > 0)
            {
                string temp1 = dt.Rows[index]["区分"].ToString();
                string temp2 = dt.Rows[index]["学歴区分"].ToString();
                string temp3 = dt.Rows[index]["学校名"].ToString();
                string temp4 = dt.Rows[index]["学校住所"].ToString();
                string temp5 = dt.Rows[index]["専攻区分"].ToString();
                string temp6 = dt.Rows[index]["専攻系列コード"].ToString();
                string temp7 = dt.Rows[index]["専攻学部"].ToString();
                string temp8 = dt.Rows[index]["専攻学科"].ToString();
                string temp9 = dt.Rows[index]["専攻内容"].ToString();
                string temp10 = dt.Rows[index]["専門技術"].ToString();
                string temp11 = dt.Rows[index]["担当教授名"].ToString();
                string temp12 = dt.Rows[index]["開始時期"].ToString();
                string temp13 = dt.Rows[index]["終了時期"].ToString();

                if (temp1 != "")
                {
                    ListItem lst = ddl_区分.Items.FindByValue(temp1);
                    ddl_区分.SelectedIndex = ddl_区分.Items.IndexOf(lst);
                }

                if (temp2 != "")
                {
                    ListItem lst = ddl_学歴区分.Items.FindByValue(temp1);
                    ddl_学歴区分.SelectedIndex = ddl_学歴区分.Items.IndexOf(lst);
                }

                txt_学校名.Text = ConvertTexttoHTML(temp3);
                txt_学校住所.Text = ConvertTexttoHTML(temp4);

                if (temp5 != "")
                {
                    if (temp5 == "1")
                        rad_文系.Checked = true;
                    else
                        rad_理系.Checked = true;
                }
                txt_専攻系列コード.Text = ConvertTexttoHTML(temp6);
                txt_専攻学部.Text = ConvertTexttoHTML(temp7);
                txt_専攻学科.Text = ConvertTexttoHTML(temp8);
                txt_専攻内容.Text = ConvertTexttoHTML(temp9);
                txt_専門技術.Text = ConvertTexttoHTML(temp10);
                txt_担当教授名.Text = ConvertTexttoHTML(temp11);
                txt_開始時期.Text = temp12 != "" ? temp12.Substring(0, 10) : "";
                txt_終了時期.Text = temp13 != "" ? temp13.Substring(0, 10) : "";

                ViewState["IdCurrent_Org_52"] = dt.Rows[index]["ID"].ToString();
                ViewState["Table_Org_52"] = dt;
                ViewState["Index_Org_52"] = index.ToString();
                btn登録.Text = "更新";
            }
            else
            {
                string header = "ID,学歴区分,学校名,開始時期,終了時期";
                ShowGridViewNotClassEmpty(grv_human, header, "データーがありません。");

            }
        }

    }
   
    protected void grv_human_PreRender(object sender, EventArgs e)
    {
        //To mau cua dong moi insert
        if (ViewState["IdCurrentOutput_Org_52"] != null && ViewState["IdCurrentOutput_Org_52"] != "")
        {
            if(string.IsNullOrEmpty(ViewState["IdCurrentOutput_Org_52"].ToString()))
                return;

            for (int i = 0; i < grv_human.Rows.Count; i++)
            {
                string IdKey = grv_human.DataKeys[i].Value.ToString();
                string keyOutput = ViewState["IdCurrentOutput_Org_52"].ToString();
                if (IdKey == keyOutput)
                {
                    grv_human.Rows[i].CssClass = "insert";
                    ViewState["IdCurrentOutput_Org_52"] = "";
                    break;
                }
            }
        }

        if(ViewState["IdCurrent_Org_52_After"]!=null && ViewState["IdCurrent_Org_52_After"]!="")
        {
            if(string.IsNullOrEmpty(ViewState["IdCurrent_Org_52_After"].ToString()))
                return;

            for(int i=0; i<grv_human.Rows.Count;i++)
            {
                string IdKey = grv_human.DataKeys[i].Value.ToString();
                string keyOutput = ViewState["IdCurrent_Org_52_After"].ToString();

                if(IdKey == keyOutput)
                {
                    grv_human.Rows[i].CssClass = "update";
                    ViewState["IdCurrent_Org_52_After"] = "";
                    break;
                }
            }
        }
        //To mau cua dong vua dc cap nhat du lieu



    }

    /// <summary>
    /// Coder: Ha Van Hoat
    /// Function: Xu ly hien thi chuoi dai len GridView
    /// </summary>
    public string ShowTextLength(object str)
    {
        if (str == null || str.ToString() == "")
            return "";
        string temp = str.ToString();
        if (checkContainsUnicodeCharacter(temp))
        {
            //true tieng nhat
            if (temp.Length > 10)
            {
                temp = temp.Substring(0, 10) + "...";
            }
        }
        else
        {
            //tieng viet
            if (temp.Length > 20)
            {
                temp = temp.Substring(0, 20) + "...";
            }
        }

        return temp;
    }

    /// <summary>
    /// Coder: Ha Van Hoat
    /// Function: Kiem tra chuoi dau vao co thuoc bang ma Unicode
    /// </summary>
    public bool checkContainsUnicodeCharacter(string input)
    {
        const int MaxAnsiCode = 255;
        char[] a = input.ToCharArray();
        for (int i = 0; i < a.Length; i++)
        {
            if (a[i] > MaxAnsiCode)
            {
                return true;
            }
        }
        return false;
    }

}
